home *** CD-ROM | disk | FTP | other *** search
/ Disc to the Future 2 / Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin / MAC / THINKC / TCL1 / _CDDIALO / CDCONTRO.H < prev    next >
Text File  |  1990-04-18  |  1KB  |  44 lines

  1. /************************************************************************************/
  2. /*                        Copyright ⌐ 1989 Philip Keller                                */
  3. /*                            All Rights Reserved                                        */
  4. /************************************************************************************/
  5. /*
  6. Author:            Philip Keller
  7.                 Belvidere Computing
  8.                 3002 Belvidere Ave. S.W.
  9.                 Seattle, WA 98126
  10.  
  11. File:            CDControl.h
  12.                 The Dialog Control Class Interface
  13.     
  14. Superclass:        CControl
  15. Subclasses:        None
  16.     
  17. Change History:
  18. 1.0    11/25/89 Philip Keller    Original version.
  19. 1.1 11/26/89 Philip Keller    Added clickCmd processing.
  20. 1.2    02/04/90 Philip Keller    Eliminated standard includes.
  21. 1.3    04/18/90 Philip Keller    Put standard includes back in (!).
  22.  
  23. *******************************************************************************/
  24.  
  25. #define _H_CDControl
  26.  
  27. #include            <CControl.h>    /* Control class                        */
  28.  
  29. struct                CDControl : CControl
  30.     {
  31.     long            clickCmd;        /* Command to issue upon click            */
  32.  
  33.     void            IDControl(        /* Initialize                            */
  34.         CView            *anEnclosure,    /* Enclosure                        */
  35.         CBureaucrat        *aSupervisor,    /* Supervisor                        */
  36.         Rect            *aRect,            /* Rectangle                        */
  37.         ControlHandle    aHandle);        /* Control handle                    */
  38.     void            DoClick(        /* Handle clicks                        */
  39.         Point            hitPt,            /* Point hit                        */
  40.         short            modifierKeys,    /* Modifier keys                    */
  41.         long            when);            /* Time of click                    */
  42.     void            SetClickCmd(    /* Set click command                    */
  43.         long            aClickCmd);        /* Specified command number            */
  44.     };